﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.IO;

namespace Task.Util
{
    public class AppPathUtil
    {
        public static string GetAssemblyDirPath(string relPath = null)
        {
            string strAssemblyFilePath = Assembly.GetExecutingAssembly().Location;
            string strAssemblyDirPath = Path.GetDirectoryName(strAssemblyFilePath);
            if (!string.IsNullOrWhiteSpace(relPath))
            {
                strAssemblyDirPath = strAssemblyDirPath + relPath;
            }
            return strAssemblyDirPath;
        }
    }
}
